package com.hxm.demo.controller;

import java.math.BigDecimal;

public class Test {

    public static void main(String[] args) {
        BigDecimal one = new BigDecimal(0.1);
        BigDecimal two = new BigDecimal("0.1");


        System.out.println(one.compareTo(two));
        System.out.println(one.equals(two));

        System.out.println(one.toString());
        System.out.println(one.toPlainString());
        System.out.println(two.toPlainString());
        System.out.println(two.toPlainString());
    }
}
